import React, {ReactElement} from 'react';
import {PhotoTestApp} from './Camera/App';
import {TabNavigator} from '../components/TabNavigator';

const tabs = [
  {title: 'PhotoTestApp', content: <PhotoTestApp />},
];

export const VisionCameraExampleApp = (): ReactElement => {
  return <TabNavigator tabs={tabs} />;
};

export default {
  displayName: 'react-native-camera_test_app',
  framework: 'React',
  category: 'UI',
  title: 'react-native-camera',
  documentationURL: 'https://github.com/react-native-oh-library/react-native-camera',
  description: 'React Native Camera',
  examples: [
    {
      title: 'react-native-camera',
      render: function (): any {
        return <VisionCameraExampleApp />;
      },
    },
  ],
};

